export class CommonIp{
  public userIp:string;
  public userimgIp:string;
  public authServer;
  constructor(){
    // this.userIp="http://localhost:8080";
    // this.userimgIp="http://localhost:8080";
    // this.authServer = "http://localhost:8888";

    this.userIp="http://www.jiangxindc.com/jiangxindc";
    this.userimgIp="http://www.jiangxindc.com";



    // this.userIp="http://www.jiangxindc.com/jiangxindc";
    // this.userimgIp="http://www.jiangxindc.com";

  }

  public HiddenLeftProgram(){
    document.getElementById("leftCatalog").removeAttribute("style");
    document.getElementById("leftCatalog").setAttribute("style","display:none");
    document.getElementById("nav").removeAttribute("style");
    document.getElementById("nav").setAttribute("style","display:none");
    document.getElementById("header").removeAttribute("style");
    document.getElementById("header").setAttribute("style","display:none");
  }
  public ShowLeftProgram(){
    document.getElementById("leftCatalog").removeAttribute("style");
    document.getElementById("leftCatalog").setAttribute("style","display:visible");
    document.getElementById("nav").removeAttribute("style");
    document.getElementById("nav").setAttribute("style","display:visible");
    document.getElementById("header").removeAttribute("style");
    document.getElementById("header").setAttribute("style","display:visible");
  }
  public  hiddenNavOnPhone() {
    if (document.body.clientWidth < 450) {
      $("#nav").css("display", "none");
      document.getElementById("nav").setAttribute("style","display:none");
    }
  }

}
